@echo off
set CSDK_VER=1.0.0
set CSDK_PRO=iot_ejs
set FOTA_FLAG=%1
set FOTA_TYPE=%2
set AM_MODEL=iot_SDK_720U_BT_TTS

set CUR=%cd%

cd ..\..\project

set PWD=%cd%
cd %PWD%
if not defined SFFS_JSON set SFFS_JSON=sffs.json

set TTS_ENABLE=ON
rem set LOG_TO_UART1=ON
rem set LOG_TO_UART2=ON

call ..\tools\core_launch.bat iot_ejs

cd %PROJECT_OUT% & cmake ..\.. -D CONFIG_BUILD_SFFS=ON -G Ninja & ninja & cd ..\..\project


cd %CUR%